<?php
declare(strict_types=1);

namespace app\admin\controller;

use app\admin\model\Admin;
use app\admin\model\AdminSettings;
use app\common\Attribute\ClassTitle;
use app\common\Attribute\RequestMethod;
use app\common\Attribute\RequestTitle;
use app\common\BaseController;

use app\common\support\Token;
use LhpAmis\Renderers\Amis;
use think\Request;

/**
 * 基础信息
 **/
#[ClassTitle(name: '基础信息')]
class Settings extends BaseController
{
    /**
     * 基础设置
     * @param \think\Request $request
     * @return \think\response\Json
     */
    #[RequestMethod(['GET'])]
    #[RequestTitle('基础设置')]
    public function info(Request $request): \think\response\Json
    {
        $settings = [
            "nav" => [
                "appendNav" => null,
                "prependNav" => null
            ],
            "assets" => [
                "js" => [],
                "css" => [],
                "scripts" => [],
                "styles" => []
            ],
            "app_name" => "Lhp Admin",
            "locale" => "zh_CN",
            "layout" => [
                "title" => "%title% | LhpAdmin",
                "header" => [
                    "refresh" => true,
                    "dark" => true,
                    "full_screen" => true,
                    "locale_toggle" => true,
                    "theme_config" => true
                ],
                "locale_options" => [
                    "en" => "English",
                    "zh_CN" => "简体中文"
                ],
                "keep_alive_exclude" => [],
                "footer" => "<a href=\"https:\/\/github.com\/slowlyo\/owl-admin\" target=\"_blank\">Lhp Admin<\/a>"
            ],
            "logo" => "/admin-assets/logo.png",
            "login_captcha" => true,
            "locale_options" =>
                [
                    [
                        "label" => "English",
                        "value" => "en"
                    ],
                    [
                        "label" => "简体中文",
                        "value" => "zh_CN"
                    ]
                ],
            "show_development_tools" => true,
            "system_theme_setting" => [
                "darkTheme" => false,
                "footer" => false,
                "breadcrumb" => true,
                "themeColor" => "#1677ff",
                "layoutMode" => "default",
                "siderTheme" => "default",
                "topTheme" => "light",
                "animateInType" => "alpha",
                "animateInDuration" => 600,
                "animateOutType" => "alpha",
                "animateOutDuration" => 600,
                "loginTemplate" => "default",
                "keepAlive" => false,
                "enableTab" => true,
                "tabIcon" => true,
                "accordionMenu" => false
            ]
        ];

        if ($userId = $this->getUserId()) {

            $AdminSettings = AdminSettings::getUserSettings($userId);

            if (!empty($AdminSettings)) {

                $settings['system_theme_setting'] = array_recursive_merge($settings['system_theme_setting'], $AdminSettings);
            }

        }
        return $this->success('success', $settings);
    }
    /**
     * 登录用户基础设置
     * @return \think\response\Json
     */
    public function inituser(): \think\response\Json
    {
        $json = [
            'name' => 'Administrator',
            'aratar' => '/admin-assets/default-avatar.png',
            'menus' => Amis::make()->DropdownButton()
                ->hideCaret('')
                ->trigger('hover')
                ->label('Administrator')->className('h-full w-full')
                ->btnClassName('navbar-user w-full')
                ->menuClassName('min-w-0')
                ->icon('/admin-assets/default-avatar.png')
                ->buttons([
                    Amis::make()->Button()->iconClassName('pr-2')->icon('fa fa-user-gear')->label('个人设置')
                        ->onClick('window.location.hash = "#/admin/system.admin/userSetting"'),

                    Amis::make()->Button()->iconClassName('pr-2')->icon('fa-solid fa-right-from-bracket"')->label('退出登录')
                        ->onClick('window.$owl.logout()')
                ])
        ];
        return $this->success('获取成功', $json);
    }
    public function dashboard()
    {
        $json = [
            "type" => "page",
            "className" => "m:overflow-auto",
            "css" => [
                ".clear-card-mb" => [
                    "margin-bottom" => "0 !important"
                ],
                ".cxd-Image" => [
                    "border" => "0"
                ],
                ".bg-blingbling" => [
                    "color" => "#fff",
                    "background" => "linear-gradient(to bottom right, #2C3E50, #FD746C, #FF8235, #ffff1c, #92FE9D, #00C9FF, #a044ff, #e73827)",
                    "background-repeat" => "no-repeat",
                    "background-size" => "1000% 1000%",
                    "animation" => "gradient 60s ease infinite"
                ],
                "@keyframes gradient" => [
                    "0" => "0%{background-position:0% 0%} 50%{background-position:100% 100%} 100%{background-position:0% 0%}"
                ],
                ".bg-blingbling .cxd-Card-title" => [
                    "color" => "#fff"
                ]
            ],
            "body" => [
                "0" => [
                    "type" => "grid",
                    "columns" => [
                        "0" => [
                            "type" => "card",
                            "className" => "h-96",
                            "body" => [
                                "type" => "wrapper",
                                "className" => "h-full",
                                "body" => [
                                    "0" => [
                                        "type" => "flex",
                                        "className" => "h-full",
                                        "direction" => "column",
                                        "justify" => "center",
                                        "alignItems" => "center",
                                        "items" => [
                                            "0" => [
                                                "type" => "image",
                                                "src" => "http://owl.admin.lhp/admin-assets/logo.png"
                                            ],
                                            "1" => [
                                                "type" => "wrapper",
                                                "className" => "text-3xl mt-9 font-bold",
                                                "body" => "Owl Admin"
                                            ],
                                            "2" => [
                                                "type" => "flex",
                                                "className" => "w-full mt-5",
                                                "justify" => "center",
                                                "items" => [
                                                    "0" => [
                                                        "type" => "action",
                                                        "level" => "link",
                                                        "className" => "text-lg font-semibold",
                                                        "label" => "GitHub",
                                                        "blank" => '',
                                                        "actionType" => "url",
                                                        "link" => "https://github.com/slowlyo/owl-admin"
                                                    ],
                                                    "1" => [
                                                        "type" => "action",
                                                        "level" => "link",
                                                        "className" => "text-lg font-semibold",
                                                        "label" => "Official website",
                                                        "blank" => '',
                                                        "actionType" => "url",
                                                        "link" => "https://owladmin.com"
                                                    ],
                                                    "2" => [
                                                        "type" => "action",
                                                        "level" => "link",
                                                        "className" => "text-lg font-semibold",
                                                        "label" => "Documentation",
                                                        "blank" => '',
                                                        "actionType" => "url",
                                                        "link" => "https://doc.owladmin.com"
                                                    ],
                                                    "3" => [
                                                        "type" => "action",
                                                        "level" => "link",
                                                        "className" => "text-lg font-semibold",
                                                        "label" => "Demo",
                                                        "blank" => '',
                                                        "actionType" => "url",
                                                        "link" => "http://demo.owladmin.com"
                                                    ]
                                                ]
                                            ]
                                        ]
                                    ]
                                ]
                            ],
                            "md" => 5
                        ],
                        "1" => [
                            "type" => "flex",
                            "items" => [
                                "0" => [
                                    "type" => "card",
                                    "className" => "h-96",
                                    "body" => [
                                        "type" => "chart",
                                        "height" => 350,
                                        "config" => [
                                            "backgroundColor" => "",
                                            "tooltip" => [
                                                "trigger" => "item"
                                            ],
                                            "legend" => [
                                                "bottom" => 0,
                                                "left" => "center"
                                            ],
                                            "series" => [
                                                "0" => [
                                                    "name" => "Access From",
                                                    "type" => "pie",
                                                    "radius" => [
                                                        "0" => "40%",
                                                        "1" => "70%"
                                                    ],
                                                    "avoidLabelOverlap" => '',
                                                    "itemStyle" => [
                                                        "borderRadius" => 10,
                                                        "borderColor" => "#fff",
                                                        "borderWidth" => 2
                                                    ],
                                                    "label" => [
                                                        "show" => '',
                                                        "position" => "center"
                                                    ],
                                                    "emphasis" => [
                                                        "label" => [
                                                            "show" => '',
                                                            "fontSize" => "40",
                                                            "fontWeight" => "bold"
                                                        ]
                                                    ],
                                                    "labelLine" => [
                                                        "show" => ''
                                                    ],
                                                    "data" => [
                                                        "0" => [
                                                            "value" => 1048,
                                                            "name" => "Search Engine"
                                                        ],
                                                        "1" => [
                                                            "value" => 735,
                                                            "name" => "Direct"
                                                        ],
                                                        "2" => [
                                                            "value" => 580,
                                                            "name" => "Email"
                                                        ],
                                                        "3" => [
                                                            "value" => 484,
                                                            "name" => "Union Ads"
                                                        ],
                                                        "4" => [
                                                            "value" => 300,
                                                            "name" => "Video Ads"
                                                        ]
                                                    ]
                                                ]
                                            ]
                                        ]
                                    ]
                                ],
                                "1" => [
                                    "type" => "card",
                                    "className" => "h-96 ml-4 w-8/12",
                                    "body" => [
                                        "type" => "tpl",
                                        "html" => "<style>
    .cube-box{ height: 300px; display: flex; align-items: center; justify-content: center; }
  .cube { width: 100px; height: 100px; position: relative; transform-style: preserve-3d; animation: rotate 10s linear infinite; }
  .cube:after {
    content: '';
    width: 100%;
    height: 100%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    position: absolute;
    transform-origin: bottom;
    transform-style: preserve-3d;
    transform: rotateX(90deg) translateY(50px) translateZ(-50px);
    background-color: rgba(0, 0, 0, 0.1);
  }
  .cube div {
    background-color: rgba(64, 158, 255, 0.7);
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgb(27, 99, 170);
    box-shadow: 0 0 60px rgba(64, 158, 255, 0.7);
  }
  .cube div:nth-child(1) { transform: translateZ(-50px); animation: shade 10s -5s linear infinite; }
  .cube div:nth-child(2) { transform: translateZ(50px) rotateY(180deg); animation: shade 10s linear infinite; }
  .cube div:nth-child(3) { transform-origin: right; transform: translateZ(50px) rotateY(270deg); animation: shade 10s -2.5s linear infinite; }
  .cube div:nth-child(4) { transform-origin: left; transform: translateZ(50px) rotateY(90deg); animation: shade 10s -7.5s linear infinite; }
  .cube div:nth-child(5) { transform-origin: bottom; transform: translateZ(50px) rotateX(90deg); background-color: rgba(0, 0, 0, 0.7); }
  .cube div:nth-child(6) { transform-origin: top; transform: translateZ(50px) rotateX(270deg); }

  @keyframes rotate {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
  }
  @keyframes shade { 50% { background-color: rgba(0, 0, 0, 0.7); } }
</style>
<div class=\"cube-box\">
    <div class=\"cube\">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</div>"
                                    ]
                                ]
                            ]
                        ]
                    ]
                ],
                "1" => [
                    "type" => "grid",
                    "columns" => [
                        "0" => [
                            "type" => "card",
                            "className" => "clear-card-mb",
                            "body" => [
                                "type" => "chart",
                                "height" => 380,
                                "className" => "h-96",
                                "config" => [
                                    "backgroundColor" => "",
                                    "title" => [
                                        "text" => "Users Behavior"
                                    ],
                                    "tooltip" => [
                                        "trigger" => "axis"
                                    ],
                                    "xAxis" => [
                                        "type" => "category",
                                        "boundaryGap" => '',
                                        "data" => [
                                            "0" => "Mon",
                                            "1" => "Tue",
                                            "2" => "Wed",
                                            "3" => "Thu",
                                            "4" => "Fri",
                                            "5" => "Sat",
                                            "6" => "Sun"
                                        ]
                                    ],
                                    "yAxis" => [
                                        "type" => "value"
                                    ],
                                    "grid" => [
                                        "left" => "7%",
                                        "right" => "3%",
                                        "top" => 60,
                                        "bottom" => 30
                                    ],
                                    "legend" => [
                                        "data" => [
                                            "0" => "Visits",
                                            "1" => "Bounce Rate"
                                        ]
                                    ],
                                    "series" => [
                                        "0" => [
                                            "name" => "Visits",
                                            "data" => [
                                                "0" => 56,
                                                "1" => 79,
                                                "2" => 161,
                                                "3" => 60,
                                                "4" => 179,
                                                "5" => 112,
                                                "6" => 41
                                            ],
                                            "type" => "line",
                                            "areaStyle" => ''
                                        ],
                                        "smooth" => '',
                                        "symbol" => "none"
                                    ],
                                    "1" => [
                                        "name" => "Bounce Rate",
                                        "data" => [
                                            "0" => 87,
                                            "1" => 100,
                                            "2" => 45,
                                            "3" => 114,
                                            "4" => 16,
                                            "5" => 11,
                                            "6" => 153
                                        ],
                                        "type" => "line",
                                        "areaStyle" => ''
                                    ],
                                    "smooth" => '',
                                    "symbol" => "none"
                                ]
                            ]
                        ]
                    ],
                    "md" => 8
                ],
                "1" => [
                    "type" => "flex",
                    "className" => "h-full",
                    "items" => [
                        "0" => [
                            "type" => "card",
                            "className" => "h-full bg-blingbling",
                            "header" => [
                                "title" => "Clock"
                            ],
                            "body" => [
                                "0" => [
                                    "type" => "custom",
                                    "name" => "clock",
                                    "html" => "<div id=\"clock\" class=\"text-4xl\"></div><div id=\"clock-date\" class=\"mt-5\"></div>",
                                    "onMount" => "const clock = document.getElementById('clock');
const tick = () => {
    clock.innerHTML = (new Date()).toLocaleTimeString();
    requestAnimationFrame(tick);
};
tick();

const clockDate = document.getElementById('clock-date');
clockDate.innerHTML = (new Date()).toLocaleDateString();"
                                ]
                            ]
                        ],
                        "1" => [
                            "type" => "panel",
                            "className" => "h-full clear-card-mb rounded-md",
                            "body" => [
                                "0" => [
                                    "type" => "markdown",
                                    "options" => [
                                        "html" => '',
                                        "breaks" => ''
                                    ],
                                    "value" => "### __The beginning of everything__

```php
<?php

echo 'Hello World';
```"
                                ]
                            ]
                        ]
                    ],
                    "direction" => "column"
                ]
            ]
        ];
        return $this->success('获取成功', $json);
    }

    public function menus()
    {
        $json = [
            "0" => [
                "name" => "[1]",
                "path" => "/admin/settings/dashboard",
                "component" => "amis",
                "is_home" => 1,
                "iframe_url" => "",
                "url_type" => 1,
                "keep_alive" => 0,
                "is_full" => 0,
                "is_link" => false,
                "page_sign" => "",
                "meta" => [
                    "title" => "控制台",
                    "icon" => "mdi:chart-line",
                    "hide" => false,
                    "custom_order" => 0
                ]
            ],
            "1" => [
                "name" => "[2]",
                "path" => "/admin/settings",
                "component" => "amis",
                "is_home" => 0,
                "iframe_url" => "",
                "url_type" => 1,
                "keep_alive" => 0,
                "is_full" => 0,
                "is_link" => false,
                "page_sign" => "",
                "meta" => [
                    "title" => "系统管理",
                    "icon" => "material-symbols:settings-outline",
                    "hide" => false,
                    "custom_order" => 0
                ],
                "children" =>
                    [
                        [
                            "name" => "[2]-[3]",
                            "path" => "/admin/system.admin/index",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "管理员",
                                "icon" => "ph:user-gear",
                                "hide" => false,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[3]-userSetting",
                            "path" => "/admin/system.admin/userSetting",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ph:user-gear",
                                "title" => "个人设置"
                            ]
                        ],
                        [
                            "name" => "[2]-[3]-create",
                            "path" => "/admin/system.admin/create",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ph:user-gear",
                                "title" => "管理员 - 创建"
                            ]
                        ],
                        [
                            "name" => "[2]-[3]-show",
                            "path" => "/admin/system.admin/show",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ph:user-gear",
                                "title" => "管理员 - 查看"
                            ]
                        ],
                        [
                            "name" => "[2]-[3]-edit",
                            "path" => "/admin/system.admin/edit",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ph:user-gear",
                                "title" => "管理员 - 编辑"
                            ]
                        ],
                        [
                            "name" => "[2]-[4]",
                            "path" => "/admin/system.auth_group/index",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "角色",
                                "icon" => "carbon:user-role",
                                "hide" => false,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[4]-create",
                            "path" => "/admin/system.AuthGroup/create",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "carbon:user-role",
                                "title" => "角色 - 创建"
                            ]
                        ],
                        [
                            "name" => "[2]-[4]-show",
                            "path" => "/admin/system.AuthGroup/show",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "carbon:user-role",
                                "title" => "角色 - 查看"
                            ]
                        ],
                        [
                            "name" => "[2]-[4]-edit",
                            "path" => "/admin/system.AuthGroup/edit",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "carbon:user-role",
                                "title" => "角色 - 编辑"
                            ]
                        ],
                        [
                            "name" => "[2]-[5]",
                            "path" => "/admin/system.auth_rule/index",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "权限",
                                "icon" => "fluent-mdl2:permissions",
                                "hide" => false,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[5]-create",
                            "path" => "/admin/system.auth_rule/create",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "fluent-mdl2:permissions",
                                "title" => "权限 - 创建"
                            ]
                        ],
                        [
                            "name" => "[2]-[5]-show",
                            "path" => "/admin/system.auth_rule/show",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "fluent-mdl2:permissions",
                                "title" => "权限 - 查看"
                            ]
                        ],
                        [
                            "name" => "[2]-[5]-edit",
                            "path" => "/admin/system.auth_rule/edit",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "fluent-mdl2:permissions",
                                "title" => "权限 - 编辑"
                            ]
                        ],
                        [
                            "name" => "[2]-[6]",
                            "path" => "/admin/system/admin_menus",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "菜单",
                                "icon" => "ant-design:menu-unfold-outlined",
                                "hide" => true,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[6]-create",
                            "path" => "/admin/system/admin_menus/create",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ant-design:menu-unfold-outlined",
                                "title" => "菜单 - 创建"
                            ]
                        ],
                        [
                            "name" => "[2]-[6]-show",
                            "path" => "/admin/system/admin_menus/:id",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ant-design:menu-unfold-outlined",
                                "title" => "菜单 - 查看"
                            ]
                        ],
                        [
                            "name" => "[2]-[6]-edit",
                            "path" => "/admin/system/admin_menus/:id/edit",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "ant-design:menu-unfold-outlined",
                                "title" => "菜单 - 编辑"
                            ]
                        ],
                        [
                            "name" => "[2]-[7]",
                            "path" => "/admin/system/settings",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "设置",
                                "icon" => "akar-icons:settings-horizontal",
                                "hide" => true,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[7]-create",
                            "path" => "/admin/system/settings/create",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "akar-icons:settings-horizontal",
                                "title" => "设置 - 创建"
                            ]
                        ],
                        [
                            "name" => "[2]-[7]-show",
                            "path" => "/admin/system/settings/:id",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "akar-icons:settings-horizontal",
                                "title" => "设置 - 查看"
                            ]
                        ],
                        [
                            "name" => "[2]-[7]-edit",
                            "path" => "/admin/system/settings/:id/edit",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "akar-icons:settings-horizontal",
                                "title" => "设置 - 编辑"
                            ]
                        ],
                        [
                            "name" => "[2]-[8]",
                            "path" => "/admin/system.menus/index",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "菜单",
                                "icon" => "lucide:menu-square",
                                "hide" => false,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[8]-create",
                            "path" => "/admin/system.menus/create",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "lucide:menu-square",
                                "title" => "菜单 - 创建"
                            ]
                        ],
                        [
                            "name" => "[2]-[8]-show",
                            "path" => "/admin/system.menus/:id",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "lucide:menu-square",
                                "title" => "菜单 - 查看"
                            ]
                        ],
                        [
                            "name" => "[2]-[8]-edit",
                            "path" => "/admin/system.menus/:id/edit",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "lucide:menu-square",
                                "title" => "菜单 - 编辑"
                            ]
                        ],

                        [
                            "name" => "[2]-[9]",
                            "path" => "/admin/system.attachment/index",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "附件",
                                "icon" => "icomoon-free:attachment",
                                "hide" => false,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[9]-show",
                            "path" => "/admin/system.menus/:id",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "akar-icons:settings-horizontal",
                                "title" => "菜单 - 查看"
                            ]
                        ],

                        [
                            "name" => "[2]-[10]",
                            "path" => "/admin/system.attachment/index",
                            "component" => "amis",
                            "is_home" => 0,
                            "iframe_url" => "",
                            "url_type" => 1,
                            "keep_alive" => 0,
                            "is_full" => 0,
                            "is_link" => false,
                            "page_sign" => "",
                            "meta" => [
                                "title" => "配置",
                                "icon" => "mynaui:config",
                                "hide" => false,
                                "custom_order" => 0
                            ]
                        ],
                        [
                            "name" => "[2]-[10]-show",
                            "path" => "/admin/system.menus/:id",
                            "component" => "amis",
                            "meta" => [
                                "hide" => true,
                                "icon" => "akar-icons:settings-horizontal",
                                "title" => "菜单 - 查看"
                            ]
                        ]
                    ]
            ]
        ];
        return $this->success('获取成功', $json);
    }
}
